<template>
  <view class="approval-item">
    <CommonHeader>转正申请</CommonHeader>
    <view class="approval-content">
      <CommonInfo approvalType="转正" />
      <view class="input-area">
        <BeforeDateSelect label="入职日期" @getSelectDate="getHireDate" />
        <Field label="试用期岗位" @getValue="getTrialJob" />
        <Textarea label="试用期工作总结" @getInputData="getJobSummary" />
        <Textarea label="对岗位的理解" @getInputData="getTrialJobText" />
        <Textarea label="对公司的意见与建议" @getInputData="getAdvise" />
      </view>
      <ApprovalButton
        :warn="warn"
        :approvalType="'positive'"
        :procInfo="{
          hireDate: String(approval.hireDate),
          trialJob: approval.trialJob,
          jobSummary: approval.jobSummary,
          trialJobText: approval.trialJobText,
          advise: approval.advise,
        }"
      />
    </view>
    <van-toast id="van-toast" />
  </view>
</template>
<script src="./script.js"></script>
<style lang="less" src="./style.less"></style>
